<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>Galaxy Explorer (grey) </title>

    <script type="text/javascript" src="../style/GalaxyExplorerHTML/script.js"></script>
	<script type='text/JavaScript' src='../script/scw.js'></script>  

    <link rel="stylesheet" href="../style/GalaxyExplorerHTML/style.css" type="text/css" media="screen" />
    <SCRIPT type="text/javascript">
	 
	function init(){
	
	<?php if (!(isset($_COOKIE['login']))): ?>
		deconnect();
	<?php endif; ?>
	
	}
	
	
	function deconnect(){
		
		
		 document.location.href="<?php echo site_url('connexionUser')?>";		 
		
	 }
	 
	 </SCRIPT>
</head>
<body onLoad="init();">
<div id="art-page-background-simple-gradient">
    </div>
    <div id="art-page-background-glare">
        <div id="art-page-background-glare-image"></div>
    </div>
    <div id="art-main">

        <div class="art-Sheet">
            <div class="art-Sheet-tl"></div>
            <div class="art-Sheet-tr"></div>
            <div class="art-Sheet-bl"></div>
            <div class="art-Sheet-br"></div>
            <div class="art-Sheet-tc"></div>
            <div class="art-Sheet-bc"></div>
            <div class="art-Sheet-cl"></div>
            <div class="art-Sheet-cr"></div>

            <div class="art-Sheet-cc"></div>
            <div class="art-Sheet-body">
                <div class="art-nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="art-menu">
                		<li>
                			<a href="#" class=" active"><span class="l"></span><span class="r"></span><span class="t">Exposition</span></a>
									<ul>
								<li><a href="<?php echo site_url('ajoutExposition')?>">Ajout</a></li>
                				<li><a href="<?php echo site_url('modifExposition')?>">Mes expositions</a></li>
                			</ul>

                		</li>
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">Oeuvre</span></a>
                			<ul>
								<li><a href="<?php echo site_url('ajoutOeuvre')?>">Ajout</a></li>
                				<li><a href="<?php echo site_url('ModifOeuvre')?>">Mes oeuvres</a></li>
                			</ul>

                		</li>		
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">Media</span></a>
							<ul>
								<li><a href="<?php echo site_url('ajoutMedia')?>">Ajout</a></li>
                				<li><a href="<?php echo site_url('ModifMedia')?>">Mes medias</a></li>
                			</ul>
                		</li>
                	</ul>
                </div>
                <div class="art-Header">
                    <div class="art-Header-jpeg"></div>
                    <div class="art-Logo">

                        <h1 id="name-text" class="art-Logo-name"><a href="#">Gestion des expositions</a></h1>
                        <div id="slogan-text" class="art-Logo-text">Ajout d'une exposition</div>

                    </div>
                </div>
                <c<div class="art-contentLayout">
                    <div class="art-content">
                        <div class="art-Post">
                            <div class="art-Post-body">

                        <div class="art-Post-inner">
                                       <?php echo validation_errors(); ?>  
                                        <div class="art-PostContent">
                                          
										<form id="content" method="post"action="<?php echo site_url('ajoutExpositionValidation')?>">

											
											
											<div class="art-Block">
                                            			<div class="art-Block-body">
                                            				<div class="art-BlockHeader">
                                                      <div class="l"></div>
                                            				  <div class="r"></div>
                                            				  <div class="t"><center>Description</center></div>

                                            			  </div>
                                            				
                                            				</div>
                                            			</div>

                                            		
											<div class="art-Block" id='desciption'>
												
											

												<TABLE BORDER="0">

													<tr> <td><b>Nom (*) :</b></td> <td><input name="nom" value="<?php if (isset($_POST['ajouter'])) echo $_POST['nom'];?>" type="text" maxlength="40" ></td> </tr>
													<tr> <td><b>Presentation :</b></td> <td><input name="presentation" value="<?php if (isset($_POST['ajouter'])) echo $_POST['presentation'];?>" type="text" maxlength="200" size ="80"></td> </tr>
													<tr> <td><b>Descriptif:</b></td> <td><TEXTAREA  name="descriptif" ><?php if (isset($_POST['ajouter'])) echo $_POST['descriptif'];?></TEXTAREA></td></tr>


												</TABLE> 

											</div>
											<br/><br/>

											
											
											<div class="art-Block">
                                            			<div class="art-Block-body">
                                            				<div class="art-BlockHeader">
                                                      <div class="l"></div>
                                            				  <div class="r"></div>
                                            				  <div class="t"><center>Programmation</center></div>
                                            				  

                                            			  </div>
                                            				
                                            				</div>
                                            			</div>
											<div id='programmation' class="art-Block">	
												
												<b>Date de debut (*) :</b> <input name='dateDebut'onclick="scwShow(this,event);" value="<?php if (isset($_POST['ajouter'])) echo $_POST['dateDebut'];?>" />
												<b>Date de fin (*) :</b> <input name='dateFin'onclick="scwShow(this,event);" value="<?php if (isset($_POST['ajouter'])) echo $_POST['dateFin'];?>" />
											</div>
											<br/><br/>
											
											
											
											<div class="art-Block">
                                            			<div class="art-Block-body">
                                            				<div class="art-BlockHeader">
                                                      <div class="l"></div>
                                            				  <div class="r"></div>
                                            				  <div class="t"><center>Lieu</center></div>

                                            			  </div>
                                            				
                                            				</div>
                                            			</div>
												<div id='lieu' class="art-Block">
												<TABLE BORDER="0">
													<tr><td><b>Adresse (*) :</b></td> <td><input name="adresse" value="<?php if (isset($_POST['ajouter'])) echo $_POST['adresse'];?>" type="text"></td></tr>

													<tr><td><b>Ville (*) :</b></td> <td><input name="ville" value="<?php if (isset($_POST['ajouter'])) echo $_POST['ville'];?>" type="text"></td></tr>

													<tr><td><b>Code postal (*) :</b></td> <td><input name="codePostal" value="<?php if (isset($_POST['ajouter'])) echo $_POST['codePostal'];?>" type="text"></td></tr>

													<tr><td><b>Pays (*) :</b></td> <td><input name="pays" value="<?php if (isset($_POST['ajouter'])) echo $_POST['pays'];?>" type="text"></td></tr>

												</TABLE> 

											</div>
											<br/><br/>

											<hr/>

											<div id="validation">

												* : champs obligatoires<br/>
												<span id="avertissement"style="display:none;" >Vous n'avez pas rempli tous les champs obligatoires</span><br/>
												<center><input class="art-button" type=submit name="ajouter" value="Ajouter"> <input class="art-button" type=reset value="Annuler"></center>
											</div>



										</form>
                                            
                                           
									
                                            
                                            
                                                
                                        </div>
                                        
                        </div>
                        
                        		
                            </div>

                        </div>
                        
                    </div>
					
					<div class="art-sidebar1">
					 
                           
									
									
                     
                </div>
                   
                </div>
               

        		<div class="cleared"></div>
				
            </div>
			<div class="cleared"></div><div class="art-Footer">
                    <div class="art-Footer-inner">
					
					<div class="art-Footer-text">
							<IMG class ="user" SRC="../image/lhomme-personnes-personne-utilisateur-icone-6535-32.png">					
                            <p><?php  echo $_COOKIE['login'];?></p>
							
                       </div>
						<IMG id ="fermer" SRC="../image/bye-shutdown-icone-5302-16.png" onclick="deconnect();">
                       
                    </div>
                    <div class="art-Footer-background"></div>
                </div>

        		<div class="cleared"></div>
            </div>
        </div>
        <div class="cleared"></div>
        <p class="art-page-footer"></p>
			
        </div>
        
        
    </div>
	
	
    
</body>

</html>
